package com.bootdo.clouddocms.controller;

import com.bootdo.clouddocms.domain.FileDO;
import com.bootdo.clouddocms.dto.FileDTO;
import com.bootdo.clouddocms.dto.convert.FileConvert;
import com.bootdo.clouddocms.service.BorrowService;
import com.bootdo.clouddocms.service.FileService;
import com.bootdo.clouddocommon.context.FilterContextHandler;
import com.bootdo.clouddocommon.utils.FileUtils;
import com.bootdo.clouddocommon.utils.PageUtils;
import com.bootdo.clouddocommon.utils.Query;
import com.bootdo.clouddocommon.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;

/**
 *
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-03-12 12:17:36
 */

@RestController
@RequestMapping("/borrow")
public class BorrowController {


    @Autowired
    private BorrowService borrowService;





    @GetMapping("test")
    public R test() {
        return R.data("hello,world! I am server one");
    }


    @GetMapping("list")
    public R list() {
        return R.data(borrowService.list());
    }

}
